<!-- 招聘 -->
<template>
    <div class="page-box h100 display-flex czbj">
      <div>
        <dxtable
          :dataJson="dataJson"
          :portUrl="portUrl"
          :qx="qx"
          ref="databale"
          sonRouter="bjRecruitment"
        ></dxtable>
      </div>
    </div>
  </template>
   <script lang='ts' setup>
  import dxtable from "../../../components/util/dxtable.vue";
  import sort from "../../../components/util/sort.vue";
  import { dxget, dxpost, qurl, hf } from "../../../util/index";
  import { h, ref, reactive } from "vue";
  import {types  } from "../public/index";
  const databale = ref();
  const initeer = () => {
    databale.value.initDataExpose();
  };
  const emit = defineEmits(["callBack"]);
  // 弹窗公用该列表
  let dataJson = reactive([
      
    {
      title: "招聘职位",
      key: "jobVacancy",
      search: true, // 是否在搜索栏展示
    },
    {
      title: "部门",
      key: "department",
      width:200,
      search: true, // 是否在搜索栏展示
    },
    {
      title: "办公点",
      key: "Placeofoffice",
      search: true, // 是否在搜索栏展示
    },
    {
      title: "招聘人数",
      key: "recruitingNumbers",
      width:100,
      search: true, // 是否在搜索栏展示
    },
    {
      title: "排序",
      width: 100,
      render(row) {
        row.databaseName = "djRecruitment";
        return h(sort, {
          row,
          onCallBack: () => {
            initeer();
          },
        });
      },
    },
    {
      title: "创建时间",
      key: "addTime",
      width: "200",
      type: "daterange",
    },
  ]);
  let portUrl = "djhs/djRecruitment";
  const qx = {
    DeletePermissionID: "djRecruitmentdel", //删除
    EditPermissionIdentifier: "djRecruitmentbj", // 编辑
    NewPermissionIdentifier: "djRecruitmentxz", // 新建
    ViewPermissionID: "djRecruitmentck", // 查看
  };
  

 
  </script>
   <style scoped>
  </style>
  
  
  